/**
 * 
 */
package javadesign.creational.factory;

/**
 * Here milkshake type 1 means chocolate and 2 means ButterScotch
 * @author aamol
 *
 */
public class MilkShakeFactory {
	
	public static MilkShake getMilkShake(int type){
		if(type ==1 ){
			return new ChocolateMilkShake();
		}else if(type==2) {
			return new ButterScotchMilkShake();
		}else{
			return null;
		}
		
	}

}
